import request from '@/utils/request'

export const getHotCityList = () => {
  return request({
    method: 'get',
    url: '/area/hot'
  })
}

export const getCityList = () => {
  return request({
    method: 'get',
    url: '/area/city',
    params: {
      level: 1
    }
  })
}

export const shouHousesMap = (value) => {
  return request({
    method: 'get',
    url: '/area/map',
    params: {
      id: value || 'AREA|dbf46d32-7e76-1196'
    }
  })
}
